package com.zcl.base.controller;

import com.zcl.base.service.ImageService;
import com.zcl.base.vo.BannerVo;
import com.zcl.comm.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class ImageController {
    @Resource
    private ImageService imageService;

    @RequestMapping("/p/index/queryBanner")
    public Result querybyBanner(){
        List<BannerVo> list= imageService.queryBanner();
        return Result.success(list);
    }
}
